<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 16-10-16
 * Time: 下午4:01
 */
return [
    /* 后台导航定义
        字段解释
        name ： 导航名字
        url ： 跳转地址  is_show 为 0 的菜单可以忽略此参数  一级导航可忽略此参数
        icon ： 导航图标  is_show 为 0 的菜单可以忽略此参数  二级导航可忽略此参数
        is_show ： 是否显示  1 显示  0 隐藏
        path ： 控制器/方法  用来定位导航配置项，获取相关导航参数
        active ： 导航选中状态定位  当本导航 is_show 字段等于 0 时， 需要指定需要高亮的导航配置的配置名称  如果 active 为空  直接使用本导航的导航名称定位
        children ： 二级导航
     */
    'main' => [
        'name' => '系统管理',
        'icon' => 'setup',
        'is_show' => 1,
        'children' => [
            'system' => [ 'name' => '系统设置', 'url' => url('system/index'), 'is_show' => 1, 'path' => 'System/index', 'icon' => 'setup_fill'],
            'wechat' => [ 'name' => '微信配置', 'url' => url('wechat/index'), 'is_show' => 1, 'path' => 'Wechat/index', 'icon' => 'icon-']
        ]
    ],
    'admin' => [
        'name' => '管理员管理',
        'icon' => 'group_fill',
        'is_show' => 1,
        'children' => [
            'admin_index' => [ 'name' => '管理员列表', 'url' => url('admin/index'), 'is_show' => 1, 'path' => 'Admin/index', 'icon' => 'group'],
            'admin_save' => [ 'name' => '保存管理员数据', 'is_show' => 0, 'path' => 'Admin/save_admin'],
            'jurisdiction_index' => [ 'name' => '权限管理', 'url' => url('jurisdiction/index'), 'is_show' => 1, 'path' => 'Jurisdiction/index', 'icon' => 'fullscreen'],
            'role_index' => [ 'name' => '角色管理', 'url' => url('jurisdiction_group/index'), 'is_show' => 1, 'path' => 'JurisdictionGroup/index', 'icon' => 'customerservice'],
            'role_save' => [ 'name' => '保存权限数据', 'is_show' => 0, 'path' => 'JurisdictionGroup/save_role'],
            'role_save_jurisdiction' => [ 'name' => '分配角色权限', 'is_show' => 0, 'path' => 'JurisdictionGroup/save_jurisdiction'],
        ]
    ],
    'product' => [
        'name' => '产品管理',
        'icon' => 'publishgoods_fill',
        'is_show' => 1,
        'children' => [
            'product_index' => [ 'name' => '产品列表', 'url' => url('product/index'), 'is_show' => 1, 'path' => 'Product/index', 'icon' => 'stealth_fill'],
            'product_save' => [ 'name' => '添加、编辑产品', 'is_show' => 0, 'path' => 'Product/product_save'],
            'product_delete' => [ 'name' => '删除产品', 'is_show' => 0, 'path' => 'Product/product_delete'],
            'category_index' => [ 'name' => '分类列表', 'url' => url('category/index'), 'is_show' => 1, 'path' => 'Category/index', 'icon' => 'workbench'],
            'category_save' => [ 'name' => '添加、编辑分类', 'is_show' => 0, 'path' => 'Category/category_save'],
            'category_delete' => [ 'name' => '删除产品', 'is_show' => 0, 'path' => 'Category/category_delete'],
            'brand_index' => [ 'name' => '品牌列表', 'url' => url('brand/index'), 'is_show' => 1, 'path' => 'Brand/index', 'icon' => 'shielding'],
            'brand_save' => [ 'name' => '添加、编辑品牌', 'is_show' => 0, 'path' => 'Brand/brand_save'],
            'brand_delete' => [ 'name' => '删除品牌', 'is_show' => 0, 'path' => 'Brand/brand_delete'],
        ]
    ],
    'member' => [
        'name' => '用户管理',
        'icon' => 'people_fill',
        'is_show' => 1,
        'children' => [
            'member_index' => [ 'name' => '用户列表', 'url' => url('member/index'), 'is_show' => 1, 'path' => 'Member/index', 'icon' => 'people'],
            'certification' => [ 'name' => '实名认证', 'url' => url('certification/index'), 'is_show' => 1, 'path' => 'Certification/index', 'icon' => 'picture_fill'],
        ]
    ],
    'shop' => [
        'name' => '店铺管理',
        'icon' => 'shop_fill',
        'is_show' => 1,
        'children' => [
            'shop_index' => [ 'name' => '店铺列表', 'url' => url('shop/index'), 'is_show' => 1, 'path' => 'Shop/index', 'icon' => 'order_fill'],
            'shop_replenishment_apply_for' => [ 'name' => '店铺补货申请', 'url' => url('shop/shop_replenishment_apply_for'), 'is_show' => 1, 'path' => 'Shop/shop_replenishment_apply_for', 'icon' => 'stealth'],
        ]
    ],
    'finance' => [
        'name' => '财务管理',
        'icon' => 'shop_fill',
        'is_show' => 1,
        'children' => [
            'shop_index' => [ 'name' => '银行管理', 'url' => url('finance/bank'), 'is_show' => 1, 'path' => 'Finance/bank', 'icon' => 'order_fill'],
            'save_bank' => [ 'name' => '添加 / 编辑银行', 'url' => url('finance/save_bank'), 'is_show' => 1, 'path' => 'Finance/save_bank', 'icon' => 'stealth'],
        ]
    ],
    'video' => [
        'name' => '视频管理',
        'icon' => 'scan',
        'is_show' => 1,
        'children' => [
            'video_index' => [ 'name' => '视频列表', 'url' => url('video/index'), 'is_show' => 1, 'path' => 'Video/index', 'icon' => 'order_fill'],
        ]
    ],
    'interaction' => [
        'name' => '互动',
        'icon' => 'scan',
        'is_show' => 1,
        'children' => [
            'video_index' => [ 'name' => '幸运大转盘', 'url' => url('xydzp/index'), 'is_show' => 1, 'path' => 'Xydzp/index', 'icon' => 'order_fill'],
        ]
    ]
];